// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

const db = cloud.database({
  env: 'xiaodan-5gh4p5lhe03c0209'
})

// 云函数入口函数
exports.main = async (event) => {
  let result = await db.collection('users').where({
    _id:event.id
  }).get()
  return result
} 